import request from '@/utils/request'


export function riskGroupList(data) { //风险评估小组-列表
    return request({
        url: '/project-management/api/risk/group/page',
        method: 'post',
        data
    })
}
export function riskGroupAdd(data) { //风险评估小组-添加
    return request({
        url: '/project-management/api/risk/group/save',
        method: 'POST',
        data
    })
}
export function riskGroupfacilitiesAll(data) { //风险评估小组-查找所有设施
    return request({
        url: '/project-quality/api/facility/get/list',
        method: 'POST',
        data
    })
}
//原 put 
export function riskGroupEdit(data) { //风险评估小组-修改
    return request({
        url: '/project-management/api/risk/group/put/update',
        method: 'post',
        data
    })
}
export function riskGroupDetails(id) { //风险评估小组-单条查询
    return request({
        url: '/project-management/api/risk/group/'+id,
        method: 'get',
    })
}
//原 del
export function riskGroupDelete(id) { //风险评估小组-单条查询删除
    return request({
        url: '/project-management/api/risk/group/del/'+id,
        method: 'get',
    })
}
export function personnelListAll(data) { //风险评估小组-所有人员
  return request({
    // url: '/sys-center/api/system/personnel/group',
    url: '/sys-center/api/system/personnel/select',
    method: 'post',
    data
  })
}
// export function riskGroupExport(id) { //里程碑表-设备、设施设备树导出
//     return request({
//         url: '/project-management/api/subItem/export/'+id,
//         responseType: 'arraybuffer',
//         method: 'get',
//     })
// }